package com.hxgz.steel.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author liuhuan
 * @description 新增商品
 * @date 2019/2/15
 */
@Data
public class ProductInsertDto {
    @ApiModelProperty(value="商品id")
    private Long id;
    @ApiModelProperty(value = "类别id",required = true)
    private Integer categoryId;
    @ApiModelProperty(value = "商品名称",required = true)
    private String name;
    @ApiModelProperty(value = "商品材质",required = true)
    private String materials;
    @ApiModelProperty(value = "图片地址",required = true)
    private String subImages;
    @ApiModelProperty("库存数量")
    private Integer stock;
    @ApiModelProperty(value = "商品编号",required = true)
    private String productCode;
    @ApiModelProperty(value = "税点（购买单个商品的税点）",required = true)
    private BigDecimal taxPoint;
    @ApiModelProperty(value = "运费",required = true)
    private BigDecimal freight;
    @ApiModelProperty(value = "运费状态 0-(一个商品一个运费) 1-总运费(一种商品一个运费)",required = true)
    private Integer freightStatus;
    @ApiModelProperty(value = "特性",required = true)
    private String features;
    @ApiModelProperty(value = "商品简介",required = true)
    private String subtitle;
    @ApiModelProperty(value = "商品详情",required = true)
    private String detail;
    @ApiModelProperty(value = "品名",required = true)
    private String topName;

    @ApiModelProperty(value ="品名id")
    private Integer topNameId;

    @ApiModelProperty(value ="商品名称id (为空时代表用户手填商品名称)")
    private Integer nameId;

    @ApiModelProperty(value ="商品材质id")
    private Integer materialsId;

    @ApiModelProperty(value ="特性id")
    private Integer featuresId;

    @ApiModelProperty(value = "单位")
    private String unit;
}
